aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/items/[id]/+page.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-20 23:17:57 -0800
committerAdam Soltys <[email protected]>2024-02-20 23:17:57 -0800
commit4c0102db94287b5adc2333d874a35154aaf86d43 (patch)
tree6c2882b7ed4db076ffe70a586c78f06bcddfaa61 /src/routes/(app)/[username]/items/[id]/+page.svelte
parentfbf3cef47c612b9c334917f10c810c797fc77da6 (diff)
downloadcoinos-ui-items.tar.gz
coinos-ui-items.zip
item drag and dropitems
Diffstat (limited to 'src/routes/(app)/[username]/items/[id]/+page.svelte')
-rw-r--r--src/routes/(app)/[username]/items/[id]/+page.svelte10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/routes/(app)/[username]/items/[id]/+page.svelte b/src/routes/(app)/[username]/items/[id]/+page.svelte
index ddf4cf1d..49619a33 100644
--- a/src/routes/(app)/[username]/items/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/items/[id]/+page.svelte
@@ -1,14 +1,18 @@
<script>
import { t } from "$lib/translations";
import ItemForm from "$comp/ItemForm.svelte";
+ import { fail } from "$lib/utils";
+
export let data;
- let { item } = data;
- console.log(item)
+ export let form;
+
+ $: form?.message && fail(form.message);
+ let { item, user } = data;
</script>
<div class="container max-w-xl mx-auto">
<h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold mb-10">
{$t("items.edit")}
</h1>
- <ItemForm {item} />
+ <ItemForm {item} {user} />
</div>